Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️(project) upgrade python dependencies #132

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 22, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
black (changelog) 24.4.2 -> 24.8.0 age adoption passing confidence
black (changelog) ==24.4.2 -> ==24.8.0 age adoption passing confidence
fastapi ==0.111.1 -> ==0.112.0 age adoption passing confidence
mypy (source, changelog) 1.10.1 -> 1.11.1 age adoption passing confidence
mypy (source, changelog) ==1.10.1 -> ==1.11.1 age adoption passing confidence
pydantic-settings (changelog) 2.3.4 -> 2.4.0 age adoption passing confidence
pydantic-settings (changelog) ==2.3.4 -> ==2.4.0 age adoption passing confidence
pyjwt ==2.8.0 -> ==2.9.0 age adoption passing confidence
pytest (changelog) 8.2.2 -> 8.3.2 age adoption passing confidence
pytest (changelog) ==8.2.2 -> ==8.3.2 age adoption passing confidence
ruff (source, changelog) 0.5.2 -> 0.5.7 age adoption passing confidence
ruff (source, changelog) ==0.5.2 -> ==0.5.7 age adoption passing confidence
sentry-sdk (changelog) ==2.10.0 -> ==2.13.0 age adoption passing confidence
setuptools (changelog) ==70.3.0 -> ==72.2.0 age adoption passing confidence
sqlmodel ==0.0.19 -> ==0.0.21 age adoption passing confidence

Release Notes

psf/black (black)

v24.8.0

Compare Source

Stable style
  • Fix crash when # fmt: off is used before a closing parenthesis or bracket. (#​4363)
Packaging
  • Packaging metadata updated: docs are explictly linked, the issue tracker is now also
    linked. This improves the PyPI listing for Black. (#​4345)
Parser
  • Fix regression where Black failed to parse a multiline f-string containing another
    multiline string (#​4339)
  • Fix regression where Black failed to parse an escaped single quote inside an f-string
    (#​4401)
  • Fix bug with Black incorrectly parsing empty lines with a backslash (#​4343)
  • Fix bugs with Black's tokenizer not handling \{ inside f-strings very well (#​4422)
  • Fix incorrect line numbers in the tokenizer for certain tokens within f-strings
    (#​4423)
Performance
  • Improve performance when a large directory is listed in .gitignore (#​4415)
Blackd
  • Fix blackd (and all extras installs) for docker container (#​4357)
fastapi/fastapi (fastapi)

v0.112.0

Compare Source

Breaking Changes
  • ♻️ Add support for pip install "fastapi[standard]" with standard dependencies and python -m fastapi. PR #​11935 by @​tiangolo.
Summary

Install with:

pip install "fastapi[standard]"
Other Changes
  • This adds support for calling the CLI as:
python -m python
  • And it upgrades fastapi-cli[standard] >=0.0.5.
Technical Details

Before this, fastapi would include the standard dependencies, with Uvicorn and the fastapi-cli, etc.

And fastapi-slim would not include those standard dependencies.

Now fastapi doesn't include those standard dependencies unless you install with pip install "fastapi[standard]".

Before, you would install pip install fastapi, now you should include the standard optional dependencies (unless you want to exclude one of those): pip install "fastapi[standard]".

This change is because having the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead fastapi-slim was not being a feasible solution.

Discussed here: #​11522 and here: #​11525

Docs
Translations
Internal
python/mypy (mypy)

v1.11.1

Compare Source

v1.11.0

Compare Source

pydantic/pydantic-settings (pydantic-settings)

v2.4.0

Compare Source

What's Changed

New Contributors

Full Changelog: pydantic/pydantic-settings@v2.3.4...v2.4.0

jpadilla/pyjwt (pyjwt)

v2.9.0

Compare Source

Changed


Fixed
~~~~~

Added
~~~~~
pytest-dev/pytest (pytest)

v8.3.2

Compare Source

pytest 8.3.2 (2024-07-24)

Bug fixes

  • #​12652: Resolve regression [conda]{.title-ref} environments where no longer being automatically detected.

    -- by RonnyPfannschmidt{.interpreted-text role="user"}

v8.3.1

Compare Source

pytest 8.3.1 (2024-07-20)

The 8.3.0 release failed to include the change notes and docs for the release. This patch release remedies this. There are no other changes.

v8.3.0

Compare Source

astral-sh/ruff (ruff)

v0.5.7

Compare Source

Preview features
  • [flake8-comprehensions] Account for list and set comprehensions in unnecessary-literal-within-tuple-call (C409) (#​12657)
  • [flake8-pyi] Add autofix for future-annotations-in-stub (PYI044) (#​12676)
  • [flake8-return] Avoid syntax error when auto-fixing RET505 with mixed indentation (space and tabs) (#​12740)
  • [pydoclint] Add docstring-missing-yields (DOC402) and docstring-extraneous-yields (DOC403) (#​12538)
  • [pydoclint] Avoid DOC201 if docstring begins with "Return", "Returns", "Yield", or "Yields" (#​12675)
  • [pydoclint] Deduplicate collected exceptions after traversing function bodies (DOC501) (#​12642)
  • [pydoclint] Ignore DOC errors for stub functions (#​12651)
  • [pydoclint] Teach rules to understand reraised exceptions as being explicitly raised (DOC501, DOC502) (#​12639)
  • [ruff] Implement incorrectly-parenthesized-tuple-in-subscript (RUF031) (#​12480)
  • [ruff] Mark RUF023 fix as unsafe if __slots__ is not a set and the binding is used elsewhere (#​12692)
Rule changes
  • [refurb] Add autofix for implicit-cwd (FURB177) (#​12708)
  • [ruff] Add autofix for zip-instead-of-pairwise (RUF007) (#​12663)
  • [tryceratops] Add BaseException to raise-vanilla-class rule (TRY002) (#​12620)
Server
  • Ignore non-file workspace URL; Ruff will display a warning notification in this case (#​12725)
CLI
  • Fix cache invalidation for nested pyproject.toml files (#​12727)
Bug fixes
  • [flake8-async] Fix false positives with multiple async with items (ASYNC100) (#​12643)
  • [flake8-bandit] Avoid false-positives for list concatenations in SQL construction (S608) (#​12720)
  • [flake8-bugbear] Treat return as equivalent to break (B909) (#​12646)
  • [flake8-comprehensions] Set comprehensions not a violation for sum in unnecessary-comprehension-in-call (C419) (#​12691)
  • [flake8-simplify] Parenthesize conditions based on precedence when merging if arms (SIM114) (#​12737)
  • [pydoclint] Try both 'Raises' section styles when convention is unspecified (DOC501) (#​12649)

v0.5.6

Compare Source

Ruff 0.5.6 automatically enables linting and formatting of notebooks in preview mode.
You can opt-out of this behavior by adding *.ipynb to the extend-exclude setting.

[tool.ruff]
extend-exclude = ["*.ipynb"]
Preview features
  • Enable notebooks by default in preview mode (#​12621)
  • [flake8-builtins] Implement import, lambda, and module shadowing (#​12546)
  • [pydoclint] Add docstring-missing-returns (DOC201) and docstring-extraneous-returns (DOC202) (#​12485)
Rule changes
  • [flake8-return] Exempt cached properties and other property-like decorators from explicit return rule (RET501) (#​12563)
Server
  • Make server panic hook more error resilient (#​12610)
  • Use $/logTrace for server trace logs in Zed and VS Code (#​12564)
  • Keep track of deleted cells for reorder change request (#​12575)
Configuration
  • [flake8-implicit-str-concat] Always allow explicit multi-line concatenations when implicit concatenations are banned (#​12532)
Bug fixes
  • [flake8-async] Avoid flagging asyncio.timeouts as unused when the context manager includes asyncio.TaskGroup (#​12605)
  • [flake8-slots] Avoid recommending __slots__ for classes that inherit from more than namedtuple (#​12531)
  • [isort] Avoid marking required imports as unused (#​12537)
  • [isort] Preserve trailing inline comments on import-from statements (#​12498)
  • [pycodestyle] Add newlines before comments (E305) (#​12606)
  • [pycodestyle] Don't attach comments with mismatched indents (#​12604)
  • [pyflakes] Fix preview-mode bugs in F401 when attempting to autofix unused first-party submodule imports in an __init__.py file (#​12569)
  • [pylint] Respect start index in unnecessary-list-index-lookup (#​12603)
  • [pyupgrade] Avoid recommending no-argument super in slots=True dataclasses (#​12530)
  • [pyupgrade] Use colon rather than dot formatting for integer-only types (#​12534)
  • Fix NFKC normalization bug when removing unused imports (#​12571)
Other changes
  • Consider more stdlib decorators to be property-like (#​12583)
  • Improve handling of metaclasses in various linter rules (#​12579)
  • Improve consistency between linter rules in determining whether a function is property (#​12581)

v0.5.5

Compare Source

Preview features
  • [fastapi] Implement fastapi-redundant-response-model (FAST001) and fastapi-non-annotated-dependency(FAST002) (#​11579)
  • [pydoclint] Implement docstring-missing-exception (DOC501) and docstring-extraneous-exception (DOC502) (#​11471)
Rule changes
  • [numpy] Fix NumPy 2.0 rule for np.alltrue and np.sometrue (#​12473)
  • [numpy] Ignore NPY201 inside except blocks for compatibility with older numpy versions (#​12490)
  • [pep8-naming] Avoid applying ignore-names to self and cls function names (N804, N805) (#​12497)
Formatter
  • Fix incorrect placement of leading function comment with type params (#​12447)
Server
  • Do not bail code action resolution when a quick fix is requested (#​12462)
Bug fixes
  • Fix Ord implementation of cmp_fix (#​12471)
  • Raise syntax error for unparenthesized generator expression in multi-argument call (#​12445)
  • [pydoclint] Fix panic in DOC501 reported in #​12428 (#​12435)
  • [flake8-bugbear] Allow singleton tuples with starred expressions in B013 (#​12484)
Documentation
  • Add Eglot setup guide for Emacs editor (#​12426)
  • Add note about the breaking change in nvim-lspconfig (#​12507)
  • Add note to include notebook files for native server (#​12449)
  • Add setup docs for Zed editor (#​12501)

v0.5.4

Compare Source

Rule changes
  • [ruff] Rename RUF007 to zip-instead-of-pairwise (#​12399)
Bug fixes
  • [flake8-builtins] Avoid shadowing diagnostics for @override methods (#​12415)
  • [flake8-comprehensions] Insert parentheses for multi-argument generators (#​12422)
  • [pydocstyle] Handle escaped docstrings within docstring (D301) (#​12192)
Documentation
  • Fix GitHub link to Neovim setup (#​12410)
  • Fix output-format default in settings reference (#​12409)

v0.5.3

Compare Source

Ruff 0.5.3 marks the stable release of the Ruff language server and introduces revamped
documentation, including setup guides for your editor of
choice
and the language server
itself
.

Preview features
  • Formatter: Insert empty line between suite and alternative branch after function/class definition (#​12294)
  • [pyupgrade] Implement unnecessary-default-type-args (UP043) (#​12371)
Rule changes
  • [flake8-bugbear] Detect enumerate iterations in loop-iterator-mutation (B909) (#​12366)
  • [flake8-bugbear] Remove discard, remove, and pop allowance for loop-iterator-mutation (B909) (#​12365)
  • [pylint] Allow repeated-equality-comparison for mixed operations (PLR1714) (#​12369)
  • [pylint] Ignore self and cls when counting arguments (PLR0913) (#​12367)
  • [pylint] Use UTF-8 as default encoding in unspecified-encoding fix (PLW1514) (#​12370)
Server
  • Build settings index in parallel for the native server (#​12299)
  • Use fallback settings when indexing the project (#​12362)
  • Consider --preview flag for server subcommand for the linter and formatter (#​12208)
Bug fixes
  • [flake8-comprehensions] Allow additional arguments for sum and max comprehensions (C419) (#​12364)
  • [pylint] Avoid dropping extra boolean operations in repeated-equality-comparison (PLR1714) (#​12368)
  • [pylint] Consider expression before statement when determining binding kind (PLR1704) (#​12346)
Documentation
  • Add docs for Ruff language server (#​12344)
  • Migrate to standalone docs repo (#​12341)
  • Update versioning policy for editor integration (#​12375)
Other changes
getsentry/sentry-python (sentry-sdk)

v2.13.0

Compare Source

Various fixes & improvements
  • New integration: Ray (#​2400) (#​2444) by @​glowskir

    Usage: (add the RayIntegration to your sentry_sdk.init() call and make sure it is called in the worker processes)

    import ray
    
    import sentry_sdk
    from sentry_sdk.integrations.ray import RayIntegration
    
    def init_sentry():
        sentry_sdk.init(
            dsn="...",
            traces_sample_rate=1.0,
            integrations=[RayIntegration()],
        )
    
    init_sentry()
    
    ray.init(
        runtime_env=dict(worker_process_setup_hook=init_sentry), 
    )

    For more information, see the documentation for the Ray integration.

  • New integration: Litestar (#​2413) (#​3358) by @​KellyWalker

    Usage: (add the LitestarIntegration to your sentry_sdk.init())

    from litestar import Litestar, get
    
    import sentry_sdk
    from sentry_sdk.integrations.litestar import LitestarIntegration
    
    sentry_sdk.init(
        dsn="...",
        traces_sample_rate=1.0,
        integrations=[LitestarIntegration()],
    )
    
    @​get("/")
    async def index() -> str:
        return "Hello, world!"
    
    app = Litestar(...)

    For more information, see the documentation for the Litestar integration.

  • New integration: Dramatiq from @​jacobsvante (#​3397) by @​antonpirker
    Usage: (add the DramatiqIntegration to your sentry_sdk.init())

    import dramatiq
    
    import sentry_sdk
    from sentry_sdk.integrations.dramatiq import DramatiqIntegration
    
    sentry_sdk.init(
        dsn="...",
        traces_sample_rate=1.0,
        integrations=[DramatiqIntegration()],
    )
    
    @​dramatiq.actor(max_retries=0)
    def dummy_actor(x, y):
        return x / y
    
    dummy_actor.send(12, 0)

    For more information, see the documentation for the Dramatiq integration.

  • New config option: Expose custom_repr function that precedes safe_repr invocation in serializer (#​3438) by @​sl0thentr0py

    See: https://docs.sentry.io/platforms/python/configuration/options/#custom-repr

  • Profiling: Add client SDK info to profile chunk (#​3386) by @​Zylphrex

  • Serialize vars early to avoid living references (#​3409) by @​sl0thentr0py

  • Deprecate hub-based sessions.py logic (#​3419) by @​szokeasaurusrex

  • Deprecate is_auto_session_tracking_enabled (#​3428) by @​szokeasaurusrex

  • Add note to generated yaml files (#​3423) by @​sentrivana

  • Slim down PR template (#​3382) by @​sentrivana

  • Use new banner in readme (#​3390) by @​sentrivana

v2.12.0

Compare Source

Various fixes & improvements

v2.11.0

Compare Source

Various fixes & improvements
  • Add disabled_integrations (#​3328) by @​sentrivana

    Disabling individual integrations is now much easier.
    Instead of disabling all automatically enabled integrations and specifying the ones
    you want to keep, you can now use the new
    disabled_integrations
    config option to provide a list of integrations to disable:

    import sentry_sdk
    from sentry_sdk.integrations.flask import FlaskIntegration
    
    sentry_sdk.init(

Do not use the Flask integration even if Flask is installed.

  disabled_integrations=[
      FlaskIntegration(),
  ],

)


- Use operation name as transaction name in Strawberry (#​3294) by @​sentrivana
- WSGI integrations respect `SCRIPT_NAME` env variable (#​2622) by @​sarvaSanjay
- Make Django DB spans have origin `auto.db.django` (#​3319) by @​antonpirker
- Sort breadcrumbs by time before sending (#​3307) by @​antonpirker
- Fix `KeyError('sentry-monitor-start-timestamp-s')` (#​3278) by @​Mohsen-Khodabakhshi
- Set MongoDB tags directly on span data (#​3290) by @​0Calories
- Lower logger level for some messages (#​3305) by @​sentrivana and @​antonpirker
- Emit deprecation warnings from `Hub` API (#​3280) by @​szokeasaurusrex
- Clarify that `instrumenter` is internal-only (#​3299) by @​szokeasaurusrex
- Support Django 5.1 (#​3207) by @​sentrivana
- Remove apparently unnecessary `if` (#​3298) by @​szokeasaurusrex
- Preliminary support for Python 3.13 (#​3200) by @​sentrivana
- Move `sentry_sdk.init` out of `hub.py` (#​3276) by @​szokeasaurusrex
- Unhardcode integration list (#​3240) by @​rominf
- Allow passing of PostgreSQL port in tests (#​3281) by @​rominf
- Add tests for `@ai_track` decorator (#​3325) by @​colin-sentry
- Do not include type checking code in coverage report (#​3327) by @​antonpirker
- Fix test_installed_modules (#​3309) by @​szokeasaurusrex
- Fix typos and grammar in a comment (#​3293) by @​szokeasaurusrex
- Fixed failed tests setup (#​3303) by @​antonpirker
- Only assert warnings we are interested in (#​3314) by @​szokeasaurusrex
pypa/setuptools (setuptools)

v72.2.0

Compare Source

v72.1.0

Compare Source

v72.0.0

Compare Source

v71.1.0

Compare Source

v71.0.4

Compare Source

v71.0.3

Compare Source

v71.0.2

Compare Source

v71.0.1

Compare Source

v71.0.0

Compare Source

tiangolo/sqlmodel (sqlmodel)

v0.0.21

Compare Source

Features
Docs
Internal

v0.0.20

Compare Source

Features
Docs
Internal

Configuration

📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/python-dependencies branch 7 times, most recently from 2889bc7 to 765354d Compare July 29, 2024 03:10
@renovate renovate bot force-pushed the renovate/python-dependencies branch 15 times, most recently from 8360ac0 to 2295cc4 Compare August 2, 2024 18:04
@renovate renovate bot force-pushed the renovate/python-dependencies branch 5 times, most recently from 83a11a8 to c4670bd Compare August 14, 2024 10:07
@jmaupetit jmaupetit self-assigned this Aug 14, 2024
@renovate renovate bot force-pushed the renovate/python-dependencies branch from c4670bd to 88fe4a9 Compare August 14, 2024 10:18
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 88fe4a9 to 9313151 Compare August 14, 2024 10:20
Copy link
Contributor Author

renovate bot commented Aug 14, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@jmaupetit jmaupetit force-pushed the renovate/python-dependencies branch from e0c7be5 to df7e1cf Compare August 14, 2024 10:54
@jmaupetit
Copy link
Member

⚠️ We will handle SQLModel upgrade separately.

@renovate renovate bot force-pushed the renovate/python-dependencies branch from df7e1cf to cab8717 Compare August 14, 2024 10:57
@jmaupetit jmaupetit force-pushed the renovate/python-dependencies branch from cab8717 to df7e1cf Compare August 14, 2024 11:04
| datasource | package           | from    | to      |
| ---------- | ----------------- | ------- | ------- |
| pypi       | black             | 24.4.2  | 24.8.0  |
| pypi       | fastapi           | 0.111.1 | 0.112.0 |
| pypi       | mypy              | 1.10.1  | 1.11.1  |
| pypi       | pydantic-settings | 2.3.4   | 2.4.0   |
| pypi       | pyjwt             | 2.8.0   | 2.9.0   |
| pypi       | pytest            | 8.2.2   | 8.3.2   |
| pypi       | ruff              | 0.5.2   | 0.5.7   |
| pypi       | sentry-sdk        | 2.10.0  | 2.13.0  |
| pypi       | setuptools        | 70.3.0  | 72.2.0  |
| pypi       | sqlmodel          | 0.0.19  | 0.0.21  |
@renovate renovate bot force-pushed the renovate/python-dependencies branch 2 times, most recently from ce7f9e0 to 4a55555 Compare August 14, 2024 12:24
Renovate forces us to add a new commit so that our changes are not
rolled back.
@jmaupetit jmaupetit force-pushed the renovate/python-dependencies branch from 4a55555 to c011b7c Compare August 14, 2024 12:29
@jmaupetit jmaupetit merged commit 8d36876 into main Aug 14, 2024
12 checks passed
@jmaupetit jmaupetit deleted the renovate/python-dependencies branch August 14, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant